package cn.tedu.boot.ers.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel("管理员新增DTO")
public class AdminAddDTO implements Serializable {
    @NotNull(message = "名字不能为空")
    @ApiModelProperty(value = "管理员名字", name = "name", example = "Admin001")
    private String name;      // varchar(50)  '管理员姓名',
    @NotNull(message = "等级不能为空")
    @ApiModelProperty(value = "管理员级别", name = "level", example = "1")
    private String level;     //char(2)  '管理员等级,0:普通,1:老板',
    @NotNull(message = "电话不能为空")
    @ApiModelProperty(value = "管理员电话", name = "tel", example = "18581168823")
    private String tel;       //varchar(50)  '管理员电话',
    @NotNull(message = "账号是否启用不能为空")
    @ApiModelProperty(value = "账号是否启用", name = "isEnable", example = "1")
    private String isEnable;  //char(2)  '是否启用,0:未启用,1:启用',
    @NotNull(message = "密码不能为空")
    @ApiModelProperty(value = "管理员密码`", name = "password", example = "168168")
    private String password;  //varchar(50)  '管理员密码'
}
